<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="p" uri="/WEB-INF/tld/page.tld" %>
<table class="table responsive-table" id="sorting-example1">
	<thead>
		<tr>
			<th scope="col" colspan="7">
				<button class="button glossy" id="add-sibling-btn">新增同级</button>
				<button class="button glossy" id="add-son-btn">新增下级</button>
			</th>
		</tr>
	</thead>
	<thead>
		<tr>
			<th scope="col">代码</th>
			<th scope="col">键</th>
			<th scope="col">值</th>
			<th scope="col">属性1</th>
			<th scope="col">属性2</th>
			<th scope="col">路径</th>
			<th scope="col">操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${dictPage.list }" var="dict">
			<tr>
				<td>${dict.code }</td>
				<td>${dict.name }</td>
				<td>${dict.value }</td>
				<td>${dict.attr1 }</td>
				<td>${dict.attr2 }</td>
				<td>${dict.path }</td>
				<td class="low-padding">
					<a href="javascript:;" class="button" onclick='dictDialog("${dict.id}")'>编辑</a>
					<a href="javascript:;" class="button" onclick='deleteDict("${dict.id}")'>删除</a>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<div class="dataTables_footer">
	<div class="dataTables_info" id="sorting-advanced_info">
		第${dictPage.pageNumber }/${dictPage.totalPage }页,共${dictPage.totalRow }条记录
	</div>
	<p:page totalRow="${dictPage.totalRow }" pageNumber="${dictPage.pageNumber }" 
		totalPage="${dictPage.totalPage }"></p:page>
</div>